
var theObj="";
function toolTip(text,me) {
    theObj=me;
    theObj.onmousemove=updatePos;
    var toolTipBox=previousEl(me);
    document.getElementById('toolTipBox').innerHTML=text;
    document.getElementById('toolTipBox').style.display="block";
    //toolTipBox.innerHTML=text;
    //toolTipBox.style.display="block";
    window.onscroll=updatePos;
}

//nuevo
function previousEl(el){
do el=el.previousSibling;
while(el&&el.nodeType!=1)
return el?el:0
}

function updatePos() {
    var ev=arguments[0]?arguments[0]:event;
    var x=ev.clientX;
    var y=ev.clientY;
    //nuevo
    //toolTipBox=previousEl(theObj);
    diffX=24;
    diffY=0;
    document.getElementById('toolTipBox').style.top = y-2+diffY+document.body.scrollTop+ "px";
    document.getElementById('toolTipBox').style.left = x-2+diffX+document.body.scrollLeft+"px";
    //toolTipBox.style.top = y-2+diffY+document.body.scrollTop+ "px";
    //toolTipBox.style.left = x-2+diffX+document.body.scrollLeft+"px";
    if (typeof(theObj)!='undefined')
    theObj.onmouseout=hideMe;
}

function hideMe() {
//previousEl(theObj).style.display="none";
    document.getElementById('toolTipBox').style.display="none";
}
